AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
+CLUTTER_MIN_VERSION=1.2.0
+
# Collect more than 20 libraries for a prize!
PKG_CHECK_MODULES(MUTTER_PLUGIN, gio-unix-2.0 gtk+-2.0 dbus-glib-1 mutter-plugins >= 2.29.0
gjs-gi-1.0 libgnome-menu $recorder_modules gconf-2.0
- gdk-x11-2.0 clutter-x11-1.0 clutter-glx-1.0
+ gdk-x11-2.0
+ clutter-x11-1.0 >= $CLUTTER_MIN_VERSION
+ clutter-glx-1.0 >= $CLUTTER_MIN_VERSION
libstartup-notification-1.0
gobject-introspection-1.0 >= 0.6.5)
PKG_CHECK_MODULES(TIDY, clutter-1.0)
if (corner->ref_count == 0) {
g_hash_table_remove(all_corners, corner);
- cogl_texture_unref(corner->texture);
+ cogl_handle_unref(corner->texture);
g_free(corner->data);
g_free(corner);
}
}
if (rectangle->corner_material) {
- cogl_material_unref (rectangle->corner_material);
+ cogl_handle_unref (rectangle->corner_material);
rectangle->corner_material = NULL;
}
if (rectangle->background_material) {
- cogl_material_unref (rectangle->background_material);
+ cogl_handle_unref (rectangle->background_material);
rectangle->background_material = NULL;
}
if (rectangle->border_material) {
- cogl_material_unref (rectangle->border_material);
+ cogl_handle_unref (rectangle->border_material);
rectangle->border_material = NULL;
}
result = (ClutterTexture*)clutter_texture_new ();
clutter_texture_set_cogl_texture (result, texture);
- cogl_texture_unref (texture);
+ cogl_handle_unref (texture);
return result;
}
recorder_set_pipeline (recorder, NULL);
recorder_set_filename (recorder, NULL);
- cogl_texture_unref (recorder->recording_icon);
+ cogl_handle_unref (recorder->recording_icon);
G_OBJECT_CLASS (shell_recorder_parent_class)->finalize (object);
}
clutter_stage_ensure_current (stage);
gl_extensions = (const char *)glGetString (GL_EXTENSIONS);
- recorder->have_pack_invert = cogl_check_extension ("GL_MESA_pack_invert", gl_extensions);
+ recorder->have_pack_invert = strstr (gl_extensions, "GL_MESA_pack_invert") != NULL;
recorder_get_initial_cursor_position (recorder);
}
cogl_push_matrix ();
- cogl_clip_push (0, 0, width, height);
+ cogl_clip_push_rectangle (0, 0, width, height);
cogl_translate ((int)(0.5 + x_align_factor * (width - child_width)),
(int)(0.5 + y_align_factor * (height - child_height)),
0);
* the borders and background stay in place; after drawing the borders and
* background, we clip to the content area */
if (priv->hadjustment || priv->vadjustment)
- cogl_clip_push ((int)content_box.x1,
- (int)content_box.y1,
- (int)content_box.x2 - (int)content_box.x1,
- (int)content_box.y2 - (int)content_box.y1);
+ cogl_clip_push_rectangle ((int)content_box.x1,
+ (int)content_box.y1,
+ (int)content_box.x2,
+ (int)content_box.y2);
for (l = priv->children; l; l = g_list_next (l))
{
content_box.y2 += y;
if (priv->hadjustment || priv->vadjustment)
- cogl_clip_push ((int)content_box.x1,
- (int)content_box.y1,
- (int)content_box.x2 - (int)content_box.x1,
- (int)content_box.y2 - (int)content_box.y1);
+ cogl_clip_push_rectangle ((int)content_box.x1,
+ (int)content_box.y1,
+ (int)content_box.x2,
+ (int)content_box.y2);
for (l = priv->children; l; l = g_list_next (l))
{
clutter_texture_set_cogl_material (CLUTTER_TEXTURE (st), material);
- cogl_texture_unref (texture);
- cogl_material_unref (material);
+ cogl_handle_unref (texture);
+ cogl_handle_unref (material);
g_free (pixels_in);
g_free (pixels_out);
if (priv->material == COGL_INVALID_HANDLE)
return;
- cogl_material_unref (priv->material);
+ cogl_handle_unref (priv->material);
priv->material = COGL_INVALID_HANDLE;
CLUTTER_ACTOR_UNSET_FLAGS (self, CLUTTER_ACTOR_REALIZED);
if (priv->material)
{
- cogl_material_unref (priv->material);
+ cogl_handle_unref (priv->material);
priv->material = COGL_INVALID_HANDLE;
}
else
return COGL_INVALID_HANDLE;
}
- cogl_texture_ref (texture);
+ cogl_handle_unref (texture);
return texture;
}
</autotools>
<autotools id="clutter">
- <branch repo="git.clutter-project.org" module="clutter" revision="clutter-1.0"/>
+ <branch repo="git.clutter-project.org" module="clutter" revision="master"/>
<dependencies>
<dep package="gobject-introspection"/>
</dependencies>